package cn.iocoder.yudao.module.forward.controller.admin.broker.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 转发服务 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BrokerRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1883")
    @ExcelProperty("序号")
    private Integer id;

    @Schema(description = "客户端ID", example = "13263")
    @ExcelProperty("客户端ID")
    private String clientId;

    @Schema(description = "平台IP")
    @ExcelProperty("平台IP")
    private String ip;

    @Schema(description = "平台端口号")
    @ExcelProperty("平台端口号")
    private Integer port;

    @Schema(description = "服务名称", example = "张三")
    @ExcelProperty("服务名称")
    private String clientName;

    @Schema(description = "用户名", example = "王五")
    private String username;

    @Schema(description = "密码")
    private String pwd;

    @Schema(description = "外网地址")
    @ExcelProperty("外网地址")
    private String outsideIp;

    @Schema(description = "外网端口")
    @ExcelProperty("外网端口")
    private String outsidePort;

    @Schema(description = "是否启用")
    @ExcelProperty(value = "是否启用", converter = DictConvert.class)
    @DictFormat("select_enable") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean enable;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}